-- GENERATED SPELL FOR [Heigarr the Horrible] --


function spell0_26266(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40504,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26266', 508, 1)
end

function spell1_26266(pUnit, Event) --@Concussion Blow,n/a--
pUnit:FullCastSpellOnTarget(32588,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26266', 5317, 1)
end

function Sorts_26266(pUnit, Event)
local choix_sorts_26266 = math.random(0, 1)
if choix_sorts_26266 == 0 then
pUnit:RegisterEvent('spell0_26266', 1, 1)
end
if choix_sorts_26266 == 1 then
pUnit:RegisterEvent('spell1_26266', 1, 1)
end
end

function mob26266_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26266', math.random(1500, 3000), 1)
end

function mob26266_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26266_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26266_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26266, 1, 'mob26266_Action')
RegisterUnitEvent(26266, 2, 'mob26266_Leave')
RegisterUnitEvent(26266, 3, 'mob26266_Kill')
RegisterUnitEvent(26266, 4, 'mob26266_Die')
